package com.java2207.group1.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author AL 2022/7/27  15:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PurchaseBo {

    @ExcelProperty(value = "id")
    private Integer id;

    @ExcelProperty(value = "肉类")
    private String meat;

    @ExcelProperty(value = "蔬菜类")
    private String vegetable;

    @ExcelProperty(value = "水果类")
    private String fruit;

    @ExcelProperty(value = "粮食类")
    private String cereal;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    @ExcelProperty(value = "保质天数")
    private String day;
}